]> dgit.raspbian.org Git - gnome-shell.git/commit
workspaceThumbnail: Use current number of workspaces for sizes
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Wed, 27 Jan 2021 16:29:53 +0000 (13:29 -0300)
committerMarge Bot <marge-bot@gnome.org>
Fri, 29 Jan 2021 15:01:03 +0000 (15:01 +0000)
commitdf2181c91323b869e6f2a680c19b217366cbc7f9
tree44cd4b6e778d4e63bf3c7b9caea439306e60986e
parentd368bae5034e40f8eeceda2096542f678dfc94cf
workspaceThumbnail: Use current number of workspaces for sizes

There are situations where MetaWorkspaceManager and ThumbnailsBox disagree
on the number of workspaces, for example when animating them out. It's more
important to follow the visible number of workspaces while they're updated.

Make vfunc_get_preferred_width() and vfunc_get_preferred_height() use the
current number of workspace thumbnails to calculate their sizes, instead of
MetaWorkspaceManager's n-thumbnails property.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1593>
js/ui/workspaceThumbnail.js